package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.IconMapper;
import com.shunbo.convenient.service.IconService;
import com.shunbo.convenient.vo.Icon;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class IconServiceImpl implements IconService {

    @Resource
    private IconMapper iconMapper;

    @Override
    public Integer save(Icon obj) {
        return iconMapper.save(obj);
    }

    @Override
    public Integer update(Icon obj) {
        return iconMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return iconMapper.delete(obj);
    }

    @Override
    public Icon findById(String obj) {
        return iconMapper.findById(obj);
    }

    @Override
    public List<Icon> findAll(Icon obj) {
        return iconMapper.findAll(obj);
    }
}
